<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript">
function search() {      
	var tName=$("#searchtName").val();      
    var url=$("#search_url").val();
        var searchBody=$("#searchBody");
    	$.post(url,
      	{	    	
    		tName:tName    		
		},function(data)
				{
			searchBody.html(data);
				}
		);
    	}
</script>
<div class="pageHeader">
	<form onsubmit="return navTabSearch(this);" action="demo_page1.html" method="post">
	<input type="hidden" name="search_url" id="search_url" value="${rootDir }/select/operate.genearch.do">
	<div class="searchBar">
		<table class="searchContent">
			<tr>
				<td>
					姓名：
					 <input type="text" id="searchtName" name="searchtName" />
				</td>				
				<td>
					家长姓名：<input type="text"/>
				</td>
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive">
				<div class="buttonContent">
					<button type="button" onclick="javascript:search()">检索</button>
				</div></div>
				</li>				
			</ul>
		</div>
	</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<li><a class="add" href="${rootDir }/daily/add.genearch.do" target="dialog" width="450" height="400"><span>添加</span></a></li>
			<li><a class="delete" href="${rootDir }/daily/delete.genearch.do?uid={sid_user}}" target="ajaxTodo" title="确定要删除吗?"><span>删除</span></a></li>
			<li><a class="edit" href="${rootDir }/daily/edit.genearch.do?uid={sid_user}" target="navTab"><span>修改</span></a></li>
			<li class="line">line</li>			
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="80">编号</th>
				<th width="150">家长姓名</th>
				<th width="80">电话</th>
				<th width="80">住址</th>
				<th width="80">备注</th>
				<th width="80">说明</th>
				<th width="80">选择</th>
			</tr>
		</thead>
		<tbody id="searchBody">
			<c:forEach items="${resLst}" var="reslst" varStatus="status">
			<tr target="sid_user" rel="${reslst.id}">
				<td><c:out value='${status.count}' /></td>
				<td><c:out value='${reslst.TName}' /></td>
				<td><c:out value='${reslst.phone}' /></td>
				<td><c:out value='${reslst.address}' /></td>
				<td><c:out value='${reslst.remark}' /></td>					
				<td><c:out value='${reslst.introduction}' /></td>
				<td><a class="btnSelect" href="javascript:$.bringBack({id:'${reslst.id}', orgName:'${reslst.TName}', seq:'${reslst.id}'})" title="查找带回">选择</a></td>
			</tr>
		</c:forEach>
		</tbody>
	</table>
</div>
